/**
 * Copyright 2011 Mathieu Magnaudet
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package edu.enac.geoapp.wims.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Simple bean encapsulating the data required for a MapLayer with polygons
 * @author mathieu
 *
 */
public class ForecastSet {
	private Metadata metada;
	private Coverage coverage;
	private List<Product> weatherProductList;

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer("ForecastSet [metada=" + metada
				+ ", coverage=" + coverage);
		for (Product p : weatherProductList) {
			buffer.append("\n\t" + p.toString());
		}
		return buffer.toString();
	}

	public ForecastSet() {
		coverage = new Coverage();
		weatherProductList = new ArrayList<Product>();
		metada = new Metadata();
	}

	/**
	 * @return the metada
	 */
	public Metadata getMetada() {
		return metada;
	}

	/**
	 * @param metada
	 *            the metada to set
	 */
	public void setMetada(Metadata metada) {
		this.metada = metada;
	}

	/**
	 * @return the coverage
	 */
	public Coverage getCoverage() {
		return coverage;
	}

	/**
	 * @param coverage
	 *            the coverage to set
	 */
	public void setCoverage(Coverage coverage) {
		this.coverage = coverage;
	}

	/**
	 * @return the weatherProductList
	 */
	public List<Product> getWeatherProductList() {
		return weatherProductList;
	}

	public void addProduct(Product product) {
		weatherProductList.add(product);
	}
}
